 class Mythis {

    private String name;

    public static void main(String[] args) {

         Mythis mythis = new Mythis();
         mythis.setName("yh");
     }
    public void setName(String name)
    {
        this.name=name;
        System.out.println(name);
    }
                                        //输出yh
}
